package com.zhengshaoguang.spring_demo1;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller1 {
    @RequestMapping("/hello1")
    public String hello1() {
        return "hello world";
    }
    @RequestMapping("/hello2")
    public String hello2() {
        return "hello 世界";
    }
} 
